<template>
	<view class="index">
		<view class="index-header">
			<view class="index-header-title">指数榜</view>
			<view class="index-header-text" @click="rankingTo">行业指数全面刨析 <uni-icons type="arrowright" size="14" color="#fff"></uni-icons></view>
		</view>
		<view class="index-content">
			<view class="index-content-item"><navigator  hover-class="none" url="/pagesB/rankingList/rankingList?id=0"><image src="../../static/navtab/index_1.png" mode="aspectFit"></image></navigator></view>
			<view class="index-content-item"><navigator  hover-class="none" url="/pagesB/rankingList/rankingList?id=1"><image src="../../static/navtab/index_2.png" mode="aspectFit"></image></navigator></view>
			<view class="index-content-item"><navigator  hover-class="none" url="/pagesB/rankingList/rankingList?id=2"><image src="../../static/navtab/index_3.png" mode="aspectFit"></image></navigator></view>
			<view class="index-content-item"><navigator  hover-class="none" url="/pagesB/rankingList/rankingList?id=0"><image src="../../static/navtab/index_4.png" mode="aspectFit"></image></navigator></view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"index-ranking",
		data() {
			return {
				
			};
		},
		methods:{
			rankingTo(){
				uni.navigateTo({
					url: '/pagesB/rankingList/rankingList?id=0'
				})
			},
			isShowtoast(){
				uni.showToast({
					title:'功能正在开发中,敬请期待',
					icon:'none'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.index{
		background-color: $uni-bg-color;
		margin: $uni-widthspace $uni-widthspace 0px;
		border-radius: 10rpx;
		.index-header{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: $uni-widthspace;
			box-sizing: border-box;
			// border-bottom: 1px solid #e6e6e6;
			.index-header-title{
				font-size: 36rpx;
				font-weight: bolder;
				color: #333;
			}
			.index-header-text{
				font-size: 24rpx;
				height: 40rpx;
				line-height: 40rpx;
	
				display: flex;
				align-items: center;
				background-color: #0e2a53;
				border-radius: 40rpx;
				color: #fff;
				padding: 2rpx 10rpx;
			}
		}
		.index-content{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 0 $uni-widthspace 30rpx;
			box-sizing: border-box;
			flex-wrap:wrap;
			.index-content-item{
				width: 25%;
				text-align: center;
				margin-top: 30rpx;
				image{
					width: 140rpx;
					height: 140rpx;
				}
			}
		}
	}
</style>
